//
//  OtherTableViewCell.m
//  HappinessTrip
//
//  Created by dllo on 15/10/16.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "OtherTableViewCell.h"
#import "Fit.h"

@implementation OtherTableViewCell
-(void)dealloc
{
    [_iconImageView release];
    [_nameLabel release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createViews];
    }
    return self;
}
-(void)createViews
{
    _iconImageView = [[UIImageView alloc]init];
    [self.contentView addSubview:_iconImageView];
    [_iconImageView release];
    _nameLabel = [[UILabel alloc]init];
    [self.contentView addSubview:_nameLabel];
    [_nameLabel release];
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _iconImageView.frame = CGRectMake(20 * W, 20 * H, 40 * W, 40 * W);
    _nameLabel.frame = CGRectMake(_iconImageView.frame.origin.x + _iconImageView.frame.size.width + 20 * W, _iconImageView.frame.origin.y, self.contentView.frame.size.width - _iconImageView.frame.size.width - 30 * W, _iconImageView.frame.size.height);
    _nameLabel.font = [UIFont systemFontOfSize:20];

    
}




















- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
